from moviepy.editor import VideoFileClip, AudioFileClip

def merge_audio_video(video_path, audio_path, output_path):
    video = VideoFileClip(video_path)
    audio = AudioFileClip(audio_path)

    # 合成音频和视频
    video = video.set_audio(audio)

    # 保存合成后的视频
    video.write_videofile(output_path)

# 示例用法
video_path = "./folder/1-声明素材.mp4"
audio_path = "./folder/output.mp3"
output_path = "./folder/output_with_audio.mp4"

merge_audio_video(video_path, audio_path, output_path)